﻿using CommonHelper;
using DataBaseLib.BLL;
using DataBaseLib.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DAQ_Desktop
{
    public class DataCenter
    {
        #region 单例模式
        static DataCenter _instance = new DataCenter();
        public static DataCenter Instance
        {
            get { return _instance; }
        }
        #endregion

        #region 属性
        public StudentBLL studentBLL { get; set; }

        public bool Init()
        {
            bool result = true;
            try
            {
                studentBLL = new StudentBLL();
                LogHelper.logSysErr.Error("DataCenter数据初始化Init完成");
            }
            catch (Exception ex)
            {
                result = false;
                LogHelper.logSysErr.Error("DataCenter数据初始化Init异常"+ex);
            }
            return result;
        }
        #endregion


    }
}
